package com.principle.strategy;

public class PekingDuck extends Duck{
    @Override
    void display() {
        System.out.println("这是北京鸭");
    }
    //因为北京鸭不能飞

    @Override
    public void fly() {
        System.out.println("不能飞");
    }
}
